<?php

/**
 * 项目配置
 * @copyright   Copyright (c) 2006 - 2010 DZH 友拓软件友拓通
 * @category   	项目配置
 * @package  	Action
 * @author    	黄明兴
 * @version 	2.1,2012-07-22
*/

class ConfigPublicAction extends Action {
	/// 项目配置首页
	public function index(){
		if ($_POST) {
			$model = D('Admin');
			if (false === $model->create($_POST)) {  
				$this->error( $model->getError(),2);
			} 
			D('Admin')->saveConfig();
			$this->success(L('_OPERATION_SUCCESS_'));
		}
		$this->display();
	}
  
}